<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysCompanyAddrBean.id}"/>
		<f:event type="preRenderView" listener="#{sysCompanyAddrBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sys Company Addr"/>

	<ui:define name="header">
		Sys Company Addr
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sysCompanyAddrBean.id}">
				Edit existing Sys Company Addr
			</c:when>
			<c:otherwise>
				Create a new Sys Company Addr
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrSysAddr01" value="Sys Addr 01:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddr01Bean.converter}" id="sysCompanyAddrBeanSysCompanyAddrSysAddr01" value="#{sysCompanyAddrBean.sysCompanyAddr.sysAddr01}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddr01Bean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrSysAddr01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrSysCompany" value="Sys Company:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysCompanyBean.converter}" id="sysCompanyAddrBeanSysCompanyAddrSysCompany" value="#{sysCompanyAddrBean.sysCompanyAddr.sysCompany}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysCompanyBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrSysCompany" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrSysAddrType" value="Sys Addr Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddrTypeBean.converter}" id="sysCompanyAddrBeanSysCompanyAddrSysAddrType" value="#{sysCompanyAddrBean.sysCompanyAddr.sysAddrType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddrTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrSysAddrType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrNo" value="Com Addr No:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrNo" maxLength="20" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrNo}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrMoo" value="Com Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrMoo" maxLength="10" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrMoo}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrSoi" value="Com Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrSoi" maxLength="100" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrSoi}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrRoad" value="Com Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrRoad" maxLength="100" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrRoad}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrBuilding" value="Com Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrBuilding" maxLength="100" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrBuilding}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrFloor" value="Com Addr Floor:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrFloor" maxLength="50" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrFloor}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrFloor" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrRoom" value="Com Addr Room:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrRoom" maxLength="50" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrRoom}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrRoom" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrName01" value="Com Addr Name 01:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrName01" maxLength="100" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrName01}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrName01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrPostcode" value="Com Addr Postcode:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrPostcode" maxLength="20" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrPostcode}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrPostcode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrPhoneNo" value="Com Addr Phone No:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrPhoneNo" maxLength="20" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrPhoneNo}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrPhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrFaxNo" value="Com Addr Fax No:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrFaxNo" maxLength="20" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrFaxNo}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrFaxNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCompanyAddrBeanSysCompanyAddrComAddrMobileNo" value="Com Addr Mobile No:"/>
				<h:panelGroup>
					<h:inputText id="sysCompanyAddrBeanSysCompanyAddrComAddrMobileNo" maxLength="20" value="#{sysCompanyAddrBean.sysCompanyAddr.comAddrMobileNo}"/>
					<h:message for="sysCompanyAddrBeanSysCompanyAddrComAddrMobileNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sysCompanyAddrBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sysCompanyAddrBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sysCompanyAddrBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sysCompanyAddrBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>